<?php
class QSource_Plugins_LangSelector extends Zend_Controller_Plugin_Abstract
{
	public function preDispatch(Zend_Controller_Request_Abstract $request)
	{
		$lang = $request->getParam('lang','');
		$model = new QSource_System_Models_Language();
		if($lang==''){
			$default = $model->getItemLangDefault();
			$request->setParam('lang', $default['alias']);
		}
		
	}
}